import Vue from 'vue'
import VueRouter  from 'vue-router'
Vue.use(VueRouter);
const router = new VueRouter({
    mode:'hash',
    routes:[
        {
            path:'/home',
            name:'home',
            component:()=>import('@/views/Home.vue')
        },
        {
            path:'/search',
            name:'search',
            component:()=>import('@/views/Search.vue')
        }
    ]
});
export default router;